//
// Created by wsl on 2024/3/10.
//

#ifndef __DATASTRUCTURE_STRING_H
#define __DATASTRUCTURE_STRING_H

#include "DataStructure_common.h"

typedef struct
{
	char *str;

	size_t length;
	size_t capacity;
} SqStr, *SqString;


SqString String_Create(const char *str, size_t size);
Status String_isEmpty(SqString string);
size_t String_length(SqString string);
Status String_clear(SqString string);
Status String_append(SqString string1, SqString string2);
Status String_destroy(SqString *string);
const char* String_value(SqString string);


#endif //__DATASTRUCTURE_STRING_H
